/**
* Author: CZ cz.theng@gmail.com
 */

package main

/*
#include "c_go.h"
#cgo LDFLAGS: -ldl
*/
import "C" // must be here not in ()

import (
	"fmt"
)

func main() {
	fmt.Println("Invoke glibc from golang")
	r := C.dlopen_hello_so(2)
	fmt.Println("Get back from c is ", r)
}
